<!--
    高级类型的action基类 带有store模块。便于内部模块的组织
-->
<script>
import moduleStore from './store'
import actionBase from './modalActionBase'
export default {
    moduleStore,
    extends: actionBase,
    props: {},
    data() {
        return {
            modalShow: false,
            isLoad: false,
            //提交成功后自动更新owner
            updateOwner: true
        }
    },
    methods: {
        actionTrigger(id, data) {
            if (!this.isLoad) this.isLoad = true
            if (data) this.actionData = data
            this.modalShow = false
            this.$nextTick(() => {
                this.modalShow = true
                this.actionReload()
            })
        },
        actionCancel() {
            this.modalClose()
        },
        actionReload() { },
        modalClose() {
            this.modalShow = false
            this.isLoad = false
        }
    }
}
</script>

<style lang="less">
</style>
